package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetActivityListResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2015-5-13   下午5:13:16
 */
@XmlRootElement
public class GetActivityListResp extends SuperResp {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -7359999478862326758L;
	
	private Integer recordSize;
	private List<ActivityInfo> activityInfos;
	
	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	public List<ActivityInfo> getActivityInfos() {
		return activityInfos;
	}

	public void setActivityInfos(List<ActivityInfo> activityInfos) {
		this.activityInfos = activityInfos;
	}

	@Override
	public String toString() {
		return "GetActivityListResp [recordSize=" + recordSize
				+ ", activityInfos=" + activityInfos + ", getResultCode()="
				+ getResultCode() + ", getResultDesc()=" + getResultDesc()
				+ "]";
	}

	public static class ActivityInfo implements Serializable{

		/** 
		* @Fields serialVersionUID : TODO
		*/ 
		private static final long serialVersionUID = 7725512470520539915L;
		
		private String code;
		private String name;
		private String theme;
		private String objects;
		private String purpose;
		private String startTime;
		private String endTime;
		private Integer repeatWinning;
		private Integer useupPoint;
		private Long cpCode;
		private String activityPoster;
		private String activityIcon;
		private String activityDiagram;
		private String imgAddress;
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getTheme() {
			return theme;
		}
		public void setTheme(String theme) {
			this.theme = theme;
		}
		public String getObjects() {
			return objects;
		}
		public void setObjects(String objects) {
			this.objects = objects;
		}
		public String getPurpose() {
			return purpose;
		}
		public void setPurpose(String purpose) {
			this.purpose = purpose;
		}
		public String getStartTime() {
			return startTime;
		}
		public void setStartTime(String startTime) {
			this.startTime = startTime;
		}
		public String getEndTime() {
			return endTime;
		}
		public void setEndTime(String endTime) {
			this.endTime = endTime;
		}
		public Integer getRepeatWinning() {
			return repeatWinning;
		}
		public void setRepeatWinning(Integer repeatWinning) {
			this.repeatWinning = repeatWinning;
		}
		public Integer getUseupPoint() {
			return useupPoint;
		}
		public void setUseupPoint(Integer useupPoint) {
			this.useupPoint = useupPoint;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
		public String getActivityPoster() {
			return activityPoster;
		}
		public void setActivityPoster(String activityPoster) {
			this.activityPoster = activityPoster;
		}
		public String getActivityIcon() {
			return activityIcon;
		}
		public void setActivityIcon(String activityIcon) {
			this.activityIcon = activityIcon;
		}
		public String getActivityDiagram() {
			return activityDiagram;
		}
		public void setActivityDiagram(String activityDiagram) {
			this.activityDiagram = activityDiagram;
		}
		@Override
		public String toString() {
			return "ActivityInfo [code=" + code + "]";
		}
		public String getImgAddress() {
			return imgAddress;
		}
		public void setImgAddress(String imgAddress) {
			this.imgAddress = imgAddress;
		}
	}
}
